package com.pingan.haofang.searchcloud.indexdatasource.dto;

/**
 * 缓存key构建用
 *
 * @author ex-sunbixiao001
 * @date 2018/3/22
 * @since 1.0.0
 */
public class DatasourceCacheKeyDto {


    private Long indexId;
    /**
     * 索引名
     */
    private String indexName;

    /**
     * 数据源名
     */
    private String datasourceName;

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getDatasourceName() {
        return datasourceName;
    }

    public void setDatasourceName(String datasourceName) {
        this.datasourceName = datasourceName;
    }

    public Long getIndexId() {
        return indexId;
    }

    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }

    public DatasourceCacheKeyDto(Long indexId, String indexName, String datasourceName) {
        this.indexId = indexId;
        this.indexName = indexName;
        this.datasourceName = datasourceName;
    }

    public DatasourceCacheKeyDto() {
    }
}
